public class BuyTickets {

    public static void main(String[] args) {
        int[] tickets= new int[]{1,2,3,4,5};
        int k = 3;
        timeRequiredToBuy timeRequiredToBuy1 = new timeRequiredToBuy();
        System.out.println(timeRequiredToBuy1.TimeRequiredToBuy(tickets,k));
    }
}